package com.uls.ycl.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.uls.common.annotation.Excel;
import com.uls.common.core.domain.BaseEntity;

/**
 * 报修评价对象 ycl_repair_evaluation
 * 
 * @author ycl
 * @date 2024-11-08
 */
public class RepairEvaluation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 评价ID */
    private Long evaluationId;

    /** 报修请求ID */
    @Excel(name = "报修请求ID")
    private Long requestId;

    /** 评分（1-5星） */
    @Excel(name = "评分", readConverterExp = "1=-5星")
    private Long rating;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String comment;

    /** 评价人ID */
    @Excel(name = "评价人ID")
    private Long userId;

    /** 评价时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "评价时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    private Date evaluatedAt;
    @Excel(name = "维修人员")
    private String name;


    //下面为改造
    @Excel(name = "用户名称")
    private String userName;
    //评价状态
    private Integer status;

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setEvaluationId(Long evaluationId)
    {
        this.evaluationId = evaluationId;
    }

    public Long getEvaluationId() 
    {
        return evaluationId;
    }
    public void setRequestId(Long requestId) 
    {
        this.requestId = requestId;
    }

    public Long getRequestId() 
    {
        return requestId;
    }
    public void setRating(Long rating) 
    {
        this.rating = rating;
    }

    public Long getRating() 
    {
        return rating;
    }
    public void setComment(String comment) 
    {
        this.comment = comment;
    }

    public String getComment() 
    {
        return comment;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setEvaluatedAt(Date evaluatedAt) 
    {
        this.evaluatedAt = evaluatedAt;
    }

    public Date getEvaluatedAt() 
    {
        return evaluatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("evaluationId", getEvaluationId())
            .append("requestId", getRequestId())
            .append("rating", getRating())
            .append("comment", getComment())
            .append("userId", getUserId())
            .append("evaluatedAt", getEvaluatedAt())
            .toString();
    }
}
